<!DOCTYPE html>
<html>
    <head>
        <title><?php echo $title ?> | Travelina</title> 
        <link href="<?php echo base_url() ?>/FontAwesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url() ?>/Bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url() ?>/Css/user.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo base_url() ?>/Fonts/Font_Importer.css" rel="stylesheet" type="text/css"/>
        <script src="<?php echo base_url() ?>/Bootstrap/jquery.js" type="text/javascript"></script>
        <script src="<?php echo base_url() ?>/Bootstrap/bootstrap.min.js" type="text/javascript"></script>

        <!-- Google Map Needs -->
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> 
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&region=IT"></script> 
        <script type="text/javascript" src="<?php echo base_url() ?>/js/PostLocation.js"></script>
    </head>
    <body>
        <nav id="user-top-nav" class="col-md-12 navbar">
            <div class="col-md-9 col-sm-9">
                <h1>Dashboard <small><a href="<?php echo base_url() ?>" target="_blank">Visit Travelina</a></small></h1>
            </div>
            <div class="col-md-3 col-sm-3">
                <div class="pull-right">
                    <a href="#" data-toggle="dropdown">
                        <?php if(isset($_COOKIE['c_ava'])){?>
                            <img src="<?php echo base_url() ?>/Images/User_Avatar/<?php echo $_COOKIE['c_ava']?>" class="img-circle" width="50" height="50"/>
                        <?php }else{ ?>
                            <img src="<?php echo base_url() ?>/Images/User_Avatar/default-ava.png" class="img-circle" width="50" height="50"/>
                        <?php } ?>
                    </a>
                    <ul class="dropdown-menu">
                        <li id="user-data-menu">
                            <?php echo $_COOKIE['c_fullname']?><br/>
                            <span>Status: Logged in</span>
                        </li>
                        <li>
                            <a href="<?php echo site_url('Login/logout')?>"><i class="fa fa-power-off fa-fw"></i> Logout</a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>

        <div id="content-container" class="col-md-12">
            <div id="menu" class="col-md-2 col-sm-2">
                <ul>
                    <li>
                        <a href="<?php echo site_url() ?>/User"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
                    </li>
                    <li>
                        <a href="<?php echo site_url() ?>/User/new_entry"><i class="fa fa-plus-square fa-fw"></i> New Entry</a>
                    </li>
                    <li>
                        <a href="<?php echo site_url() ?>/User/all_entries"><i class="fa fa-files-o fa-fw"></i> Show Entries</a>
                    </li>
                    <li>
                        <a href="<?php echo site_url() ?>/User/profile"><i class="fa fa-photo fa-fw"></i> Show Profile</a>
                    </li>
                    <li>
                        <a href="<?php echo site_url() ?>/User/edit_profile"><i class="fa fa-edit fa-fw"></i> Edit Profile</a>
                    </li>
                </ul>
            </div>
            
            <div id="content" class="col-md-10 col-sm-10">                
                <div style="width: 100%; box-sizing: border-box; float: none;">
                    <h2 class="tab-title"><span><i class="fa fa-fw fa-<?php echo $icon ?>"></i></span><?php echo $tab_title ?></h2>
                </div>
                <?php $this->load->view("user/includes/$page") ?>
            </div>

        </div>
    </body>
</html>